<?php
class Page {
	var $Title;
	var $Keywords;
	var $Content;
	var $install_url;
	var $url;
	var $name_apps;
	var $page = "";
	var $name_user;
	var $name_company;
	var $name_description;
	 

	function	__construct()
	{
		$this->name_company = "MyGesco";
		$this->name_description = "MyGesco \n Gestion des Produits AP - Project Hosting";
		$this->name_user = "brunet";
	}
	

	function Page($name_apps)
	{
		$this->name_apps = $name_apps;
	}
	 

	function Display( )
	{
		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
		echo "<HTML>\n";

		//page header
		include ('INCLUDE/inc.header.php');

		//afficher un titre a la page
		$this->DisplayTitle();
		$this->DisplayKeywords( );
		 
		//balise Body de la page
		echo "\n<BODY>\n";

		//echo $this->Content;
		include ('INCLUDE/inc.banner_up.php');
		//echo $this->Content;
		include ('INCLUDE/inc.banner_menu_up.php');


		if (!isset($_GET['page']) && !isset($_POST['page']))
		{
			include ('./INCLUDE/inc.banner_sub_menu_up.php');

			$page = "inc.main";
			include ('./INCLUDE/' . $page . '.php');
		}
		else
		{
			if (isset($_GET['page']))
			{
				$page = $_GET['page'];
			}
			if (isset($_POST['page']))
			{
				$page = $_POST['page'];
			}
			if (file_exists('./include/' . $page . '.php'))
			{
				include ('./include/' . $page .'.php');
			}
			else
			{
				include ('./include/inc.error.php');
			}
		}
		include ('INCLUDE/inc.banner_footer.php');

		 
		echo "\n</BODY>\n";
		echo "\n</HTML>\n";
	}

	function DisplayTitle( ) {
		echo "<TITLE>" . $this->Title . "</TITLE>\n";
	}

	function DisplayKeywords( ) {
		echo '<META NAME="keywords" CONTENT="' . $this->Keywords . '">';
	}
	 
	function SetLogin( ) {
		 
	}
	/*
	 function SetContent( $Data ) {
	 $this->Content = $Data;
	 }
	 */
}
?>

